<?php //include_once 'Application/Views/owner/OwnerView.php'; ?>
<?php //include_once '../view/header.php'; ?>


<form >
 <center>
            <table border="1">
                    <tr>
                            <td>DNI</td>
                            <td>Apellidos</td>
                            <td>Nombres</td>
                            <td>Sexo</td>
                            <td>Fecha</td>
                            <td>Direccion</td>
                    </tr>
                    <?php  
                    
                        //global $consulta;
                        
                        if (isset($_GET['consult'])){
                            $a=stripslashes($_GET['consult']);            
                            $consult=unserialize($a);
                        }
                        
                        $num=count($consult);
                        
                       // $num=$_GET['num'];
                       
                       for($i=0;$i<$num;$i++){?>
                    <tr>                    
                            <td><?php echo $consult[$i][0] ?></td>
                            <td><?php echo $consult[$i][1] ?></td>
                            <td><?php echo $consult[$i][2] ?></td>
                            <td><?php echo $consult[$i][3] ?></td>  
                            <td><?php echo $consult[$i][4] ?></td>
                            <td><?php echo $consult[$i][5] ?></td>
                            <td><input type="button" value="Modificar" 
                                       onclick="window.open('/app_registro_vehiculos/principal.php?controller=Owner&action=showModify&id=<?php echo $consult[$i][0]?>','content'); " ></td>
                    </tr>
                    <?}?> 
            </table>
            
        </center>
</form>

<center>
   <!-- <div>
        <?php include_once '../view/botonInicio.php';  ?>
    </div>--->
</center>